package com.syh.jn.scm.dto.operation.system.permission;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Getter
public class PermissionMto implements Serializable {

	@NotNull
	private Long id;

	@NotEmpty
	private String permissionName;
	/**
	 * url权限:supplier:create
	 */
	@NotEmpty
	private String permissionUrl;
	/**
	 * 方法权限: POST|GET|DELETE|PUT|PATCH
	 */
	@NotEmpty
	private String permissionMethod;
	@NotNull
	private Long typeId;

}
